package cn.com.huzo.model.entities.tech;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 物料需求计划-搭配计算明细实体类
 *
 * @author 吴旭
 */
public class MrpLinesAssortmentEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -6014508299969499649L;
    private String LinesId;
    private Long HeaderId;
    private Long MaterialId;
    private String BomLinesId;
    private Short OrderNo;                  // 排列顺序 = 单耗排列顺序
    private String MaterialCode;
    private String MaterialName;            // 材料名
    private String SupplierName;            // 供应商
    private String Specification;           // 规格
    private String YarnCount;               // 纱支
    private String FabricWidth;             // 幅宽
    private String GramWeight;              // 克重
    private Long UomId;                     // 计量单位
    private String UomName;
    private String MaterialComposition;
    private String MeshBeltOpening;         // 织带开度
    private String PartOfNeed;              // 用料部位
    private Float CustomerPieceYardage;     // 客户用量
    private Float FactoryPieceYardage;      // 工厂用量
    private Float SuitCutPieceYardage;      // 套裁用量
    private String Description;             // 备注
    private Short AssortmentType;           // 搭配类型 0:无搭配 1:色搭配 2:码搭配 3：色+码搭配
    private Boolean CalByDestinationFlag;   // 是否按目的地分配数量进行计算标记
    private List<Integer> AssortmentSize;   // 保存搭配计算用的成品尺码
    private List<String> AssortmentDestination;  // 搭配计算用发货地
    private Boolean QuotedFlag;             // 被采购订单引用标记
    private Object ColourSchema;            // 配色方案
    private Boolean IsCalculatedRow;        // 是已经计算的行

    // 下面几个是用来进行作搭配计算用的参数
    private Long MoHeaderId;
    private String StyleNo;
    private Long BomHeaderId;
    private Short BillType;

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getMaterialId() {
        return MaterialId;
    }

    public void setMaterialId(Long MaterialId) {
        this.MaterialId = MaterialId;
    }

    public String getBomLinesId() {
        return BomLinesId;
    }

    public void setBomLinesId(String BomLinesId) {
        this.BomLinesId = BomLinesId;
    }

    public Short getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(Short OrderNo) {
        this.OrderNo = OrderNo;
    }

    public String getMaterialCode() {
        return MaterialCode;
    }

    public void setMaterialCode(String MaterialCode) {
        this.MaterialCode = MaterialCode;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public void setMaterialName(String MaterialName) {
        this.MaterialName = MaterialName;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String SupplierName) {
        this.SupplierName = SupplierName;
    }

    public String getSpecification() {
        return Specification;
    }

    public void setSpecification(String Specification) {
        this.Specification = Specification;
    }

    public String getYarnCount() {
        return YarnCount;
    }

    public void setYarnCount(String YarnCount) {
        this.YarnCount = YarnCount;
    }

    public String getFabricWidth() {
        return FabricWidth;
    }

    public void setFabricWidth(String FabricWidth) {
        this.FabricWidth = FabricWidth;
    }

    public String getGramWeight() {
        return GramWeight;
    }

    public void setGramWeight(String GramWeight) {
        this.GramWeight = GramWeight;
    }

    public Long getUomId() {
        return UomId;
    }

    public void setUomId(Long UomId) {
        this.UomId = UomId;
    }

    public String getUomName() {
        return UomName;
    }

    public void setUomName(String UomName) {
        this.UomName = UomName;
    }

    public String getMaterialComposition() {
        return MaterialComposition;
    }

    public void setMaterialComposition(String MaterialComposition) {
        this.MaterialComposition = MaterialComposition;
    }

    public String getMeshBeltOpening() {
        return MeshBeltOpening;
    }

    public void setMeshBeltOpening(String MeshBeltOpening) {
        this.MeshBeltOpening = MeshBeltOpening;
    }

    public String getPartOfNeed() {
        return PartOfNeed;
    }

    public void setPartOfNeed(String PartOfNeed) {
        this.PartOfNeed = PartOfNeed;
    }

    public Float getCustomerPieceYardage() {
        return CustomerPieceYardage;
    }

    public void setCustomerPieceYardage(Float CustomerPieceYardage) {
        this.CustomerPieceYardage = CustomerPieceYardage;
    }

    public Float getFactoryPieceYardage() {
        return FactoryPieceYardage;
    }

    public void setFactoryPieceYardage(Float FactoryPieceYardage) {
        this.FactoryPieceYardage = FactoryPieceYardage;
    }

    public Float getSuitCutPieceYardage() {
        return SuitCutPieceYardage;
    }

    public void setSuitCutPieceYardage(Float SuitCutPieceYardage) {
        this.SuitCutPieceYardage = SuitCutPieceYardage;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Short getAssortmentType() {
        return AssortmentType;
    }

    public void setAssortmentType(Short AssortmentType) {
        this.AssortmentType = AssortmentType;
    }

    public Boolean getCalByDestinationFlag() {
        return CalByDestinationFlag;
    }

    public void setCalByDestinationFlag(Boolean CalByDestinationFlag) {
        this.CalByDestinationFlag = CalByDestinationFlag;
    }

    public List<Integer> getAssortmentSize() {
        return AssortmentSize;
    }

    public void setAssortmentSize(List<Integer> AssortmentSize) {
        this.AssortmentSize = AssortmentSize;
    }

    public List<String> getAssortmentDestination() {
        return AssortmentDestination;
    }

    public void setAssortmentDestination(List<String> AssortmentDestination) {
        this.AssortmentDestination = AssortmentDestination;
    }

    public Boolean getQuotedFlag() {
        return QuotedFlag;
    }

    public void setQuotedFlag(Boolean QuotedFlag) {
        this.QuotedFlag = QuotedFlag;
    }

    public Object getColourSchema() {
        return ColourSchema;
    }

    public void setColourSchema(Object ColourSchema) {
        this.ColourSchema = ColourSchema;
    }

    public Boolean getIsCalculatedRow() {
        return IsCalculatedRow;
    }

    public void setIsCalculatedRow(Boolean IsCalculatedRow) {
        this.IsCalculatedRow = IsCalculatedRow;
    }

    public Long getMoHeaderId() {
        return MoHeaderId;
    }

    public void setMoHeaderId(Long MoHeaderId) {
        this.MoHeaderId = MoHeaderId;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public Long getBomHeaderId() {
        return BomHeaderId;
    }

    public void setBomHeaderId(Long BomHeaderId) {
        this.BomHeaderId = BomHeaderId;
    }

    public Short getBillType() {
        return BillType;
    }

    public void setBillType(Short BillType) {
        this.BillType = BillType;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MrpLinesAssortmentEntity)) {
            return false;
        }

        final MrpLinesAssortmentEntity that = (MrpLinesAssortmentEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
